﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class
    name="SampleUCDArchApp.Core.Domain.Customer, SampleUCDArchApp.Core"
    table="Customers" >
    <id name="Id" column="CustomerID" unsaved-value="0">
      <generator class="assigned" />
    </id>

    <property name="CompanyName" />
    <property name="ContactName" />

    <property name="Country" />
    <property name="Fax" />

    <bag name="Orders" cascade="all">
      <key column="CustomerID" />
      <one-to-many class="SampleUCDArchApp.Core.Domain.Order, SampleUCDArchApp.Core" />
    </bag>
    
  </class>
</hibernate-mapping>